package ga.gates;


/**
 * The Class XnorGate.
 */
public class XnorGate extends Gates {

	/* (non-Javadoc)
	 * @see ga.gates.Gates#eval(boolean, boolean)
	 */
	@Override
	public boolean eval(boolean input1, boolean input2) {
		return !((input1 && !input2) || (!input1 && input2));
	}

	/* (non-Javadoc)
	 * @see ga.gates.Gates#toString()
	 */
	@Override
	public String toString() {
		return "XNOR";
	}

}
